package com.DHH.Mapper.Base;

import com.DHH.Entity.Base.BaseMenu;

import org.springframework.stereotype.Repository;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;

@Repository
@MapperScan
public interface BaseMenuMapper extends Mapper<BaseMenu>  {

            /*搜索*/
    public List<BaseMenu> searchByBaseMenu(BaseMenu r);
             /*筛选*/
    public List<BaseMenu> screenByBaseMenu(BaseMenu r);
             /*过滤*/
    public List<BaseMenu> filterByBaseMenu(BaseMenu r);

    public BaseMenu selectBaseMenuById(BaseMenu r);

    /**
     *根据角色查询菜单
     * @param id
     * @return
     */
    public List<BaseMenu> selectMenuByRoleId(Integer id);
}
